import request from '@/utils/request'

/**
 * 图形文件数据项说明分页查询
 * @param {查询条件} data
 */
export function listProGraphicfile(query) {
  return request({
    url: 'business/graphicfile/list',
    method: 'get',
    params: query,
  })
}

/**
 * 新增图形文件数据项说明
 * @param data
 */
export function addProGraphicfile(data) {
  return request({
    url: 'business/graphicfile',
    method: 'post',
    data: data,
  })
}
/**
 * 修改图形文件数据项说明
 * @param data
 */
export function updateProGraphicfile(data) {
  return request({
    url: 'business/graphicfile',
    method: 'PUT',
    data: data,
  })
}
/**
 * 获取图形文件数据项说明详情
 * @param {Id}
 */
export function getProGraphicfile(id) {
  return request({
    url: 'business/graphicfile/' + id,
    method: 'get'
  })
}

/**
 * 删除图形文件数据项说明
 * @param {主键} pid
 */
export function delProGraphicfile(pid) {
  return request({
    url: 'business/graphicfile/delete/' + pid,
    method: 'delete'
  })
}

//获取getUploadUrl
export function getUploadUrl(data){
  return request({
    url: 'business/qiniu/upload',
    method: 'post',
    data: data,
  })
}
